package com.cinc.ebc.mm.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 库存单据
 * @Author: jeecg-boot
 * @Date:   2022-04-05
 * @Version: V1.0
 */
@ApiModel(value="mm_stock_in_out对象", description="库存单据")
@Data
public class MmStockInOutModel {

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
	/**单据号*/
	@Excel(name = "单据号", width = 15)
    @ApiModelProperty(value = "单据号")
    private String billNo;
	/**单据日期*/
	@Excel(name = "单据日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "单据日期")
    private Date billDate;
	/**库房*/
	@Excel(name = "库房", width = 15, dictTable = "mdm_warehouse", dicText = "warehouse_name", dicCode = "id")
    @Dict(dictTable = "mdm_warehouse", dicText = "warehouse_name", dicCode = "id")
    @ApiModelProperty(value = "库房")
    private String warehouseId;
	/**出入标志*/
	@Excel(name = "出入标志", width = 15, dicCode = "mm_io_flag")
    @Dict(dicCode = "mm_io_flag")
    @ApiModelProperty(value = "出入标志")
    private String ioFlag;
	/**移动类型*/
	@Excel(name = "移动类型", width = 15, dictTable = "mdm_movement_type", dicText = "type_name", dicCode = "id")
    @Dict(dictTable = "mdm_movement_type", dicText = "type_name", dicCode = "id")
    @ApiModelProperty(value = "移动类型")
    private String moveId;
    /**供应商*/
    @Excel(name = "供应商", width = 15, dictTable = "mdm_supply", dicText = "supply_full_name", dicCode = "id")
    @Dict(dictTable = "mdm_supply", dicText = "supply_full_name", dicCode = "id")
    @ApiModelProperty(value = "供应商")
    private String supplyId;
    /**客户*/
    @Excel(name = "客户", width = 15, dictTable = "mdm_customer", dicText = "cust_full_name", dicCode = "id")
    @Dict(dictTable = "mdm_customer", dicText = "cust_full_name", dicCode = "id")
    @ApiModelProperty(value = "客户")
    private String customerId;
	/**凭证号*/
	@Excel(name = "凭证号", width = 15)
    @ApiModelProperty(value = "凭证号")
    private String voucherNo;
	/**凭证日期*/
	@Excel(name = "凭证日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "凭证日期")
    private Date voucherDate;
    /**冲销单据号*/
    @Excel(name = "冲销单据号", width = 15)
    @ApiModelProperty(value = "冲销单据号")
    private String cancelBillNo;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
    /**其它出入库标志*/
    @Excel(name = "其它出入库标志", width = 15)
    @ApiModelProperty(value = "其它出入库标志")
    private String otherFlag;
    /**项目*/
    @Excel(name = "项目", width = 15, dictTable = "quote_project", dicText = "project_name", dicCode = "id")
    @Dict(dictTable = "quote_project", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "项目")
    private String projectId;
}
